package com.xnf.article.feigh;

import com.xnf.model.admin.dtos.ChannelDto;
import com.xnf.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created by chendx on 2022/4/2.
 */

@FeignClient("leadnews-admin")
public interface AdminFeign {

    @PostMapping("/api/v1/channel/channelList")
    public ResponseResult findChannels(@RequestBody ChannelDto dto);

    @GetMapping("/api/v1/channel/channels")
    ResponseResult selectAllChannel();
}
